﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace MDT.LifeSewagePlatform.Conmmon
{
    public static class JsonHelper
    {
        public static string SerializeObject<T>(T t) {
            string strJson = JsonConvert.SerializeObject(t);
            return strJson;
        }
        public static T GetJson<T>(string strJson)
        {
            T t= JsonConvert.DeserializeObject<T>(strJson);
            return t;
        }
    }
}
